|
poziția meniului |
---|
Draft → Offset |
Ateliere |
Draft, Arch |
scurtătură |
O S |
Prezentat în versiune |
- |
A se vedea, de asemenea, |
Part 2D Offset |
Instrumentul Decalare deplasează obiectele selectate la o o distanță dată față de durentul paln work plane. Dacă nu este selectat niciun obiect, veți fi invitat să selectați unul.
Offsetting a Draft Wire
See also: Draft Snap and Draft Constrain.
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts (for version 1.0).
Instrumentul de Decalare poate fi folosit în macros și din consola Python utilizând următoarea funcție:
offset_obj = offset(obj, delta, copy=False, bind=False, sym=False, occ=False)
Exempluː
import FreeCAD as App
import Draft
doc = App.newDocument()
p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1500, 2000, 0)
p3 = App.Vector(4000, 0, 0)
wire = Draft.make_wire([p1, p2, p3])
doc.recompute()
vector = App.Vector(-200, 150, 0)
offset1 = Draft.offset(wire, vector, copy=True, bind=True, sym=True)
offset2 = Draft.offset(wire, 3*vector, copy=True)
offset3 = Draft.offset(wire, 6*vector, copy=True)
offset4 = Draft.offset(wire, 9*vector, copy=True)
offset5 = Draft.offset(wire, 1.5*vector, copy=True, occ=True)
doc.recompute()